home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / bash-1.12 / dist / lib / glob / Makefile < prev    next >
Encoding:
Makefile  |  1991-11-16  |  516 b   |  25 lines

  1. # Makefile for glob source is in -*- text -*- mode.
  2.  
  3. CFLAGS = -g
  4. RM = rm -f
  5. OBJECTS = glob.o tilde.o fnmatch.o
  6.  
  7. # Here is a rule for making .o files from .c files that does not
  8. # force the type of the machine (like -M_MACHINE) into the flags.
  9. .c.o:
  10.     $(RM) $@
  11.     $(CC) $(CFLAGS) $(CPPFLAGS) -c $*.c
  12.  
  13. libglob.a: $(OBJECTS)
  14.     $(RM) -f $@
  15.     $(AR) clq $@ $(OBJECTS)
  16.     -if [ -f "$(RANLIB)" ]; then $(RANLIB) $@; fi
  17.  
  18. tilde-test: tilde.c
  19.     $(CC) $(CFLAGS) -o tilde-test -DTEST tilde.c
  20.  
  21. fnmatch.o: fnmatch.h
  22.  
  23. clean:
  24.     $(RM) *.o *.a
  25.